package com.green.model.manage;

import java.math.BigDecimal;

import com.green.model.ExtraEntity;
import com.green.model.manage.enums.JoinTypeEnum;
import com.green.model.manage.enums.StateEnum;

/**
 * 加盟套餐
 * 
 * @author
 */
public class JoinPackage extends ExtraEntity<String> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3247398703445636229L;

	private String name;// 名称
	private JoinTypeEnum type;// 套餐类别
	private int usePeriod;// 合同期限
	private int freePeriod;// 赠送时间
	private BigDecimal packagePrice;// 合同金额
	private BigDecimal ensurePrice;// 保证金
	private BigDecimal discountRatio;// 默认折扣率
	private String limitCity;// 城市 加盟组织ID
	private String limitCityName;// 城市 加盟组织name
	private StateEnum status;// 状态
	private String typeName;// 状态
	
	
	public String getLimitCityName() {
		return limitCityName;
	}
	public void setLimitCityName(String limitCityName) {
		this.limitCityName = limitCityName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public JoinTypeEnum getType() {
		return type;
	}
	public void setType(JoinTypeEnum type) {
		this.type = type;
	}
	public int getUsePeriod() {
		return usePeriod;
	}
	public void setUsePeriod(int usePeriod) {
		this.usePeriod = usePeriod;
	}
	public int getFreePeriod() {
		return freePeriod;
	}
	public void setFreePeriod(int freePeriod) {
		this.freePeriod = freePeriod;
	}
	public BigDecimal getPackagePrice() {
		return packagePrice;
	}
	public void setPackagePrice(BigDecimal packagePrice) {
		this.packagePrice = packagePrice;
	}
	public BigDecimal getEnsurePrice() {
		return ensurePrice;
	}
	public void setEnsurePrice(BigDecimal ensurePrice) {
		this.ensurePrice = ensurePrice;
	}
	public BigDecimal getDiscountRatio() {
		return discountRatio;
	}
	public void setDiscountRatio(BigDecimal discountRatio) {
		this.discountRatio = discountRatio;
	}
	public String getLimitCity() {
		return limitCity;
	}
	public void setLimitCity(String limitCity) {
		this.limitCity = limitCity;
	}
	public StateEnum getStatus() {
		return status;
	}
	public void setStatus(StateEnum status) {
		this.status = status;
	}
	public String getTypeName() {
		if(null!=type){
			return type.getName();
		}
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	

}
